package com.datam.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.datam.query.QueryCompanyPkInfo;
import com.datam.domain.CompanyPkInfoDO;
@Mapper
public interface CompanyPkInfoDAO {

	public CompanyPkInfoDO selectCompanyPkInfoById(@Param("id")Long id);

	public List< CompanyPkInfoDO > selectCompanyPkInfoList(QueryCompanyPkInfo queryCompanyPkInfo);

	public Integer countCompanyPkInfoList(QueryCompanyPkInfo queryCompanyPkInfo);

	public int insertCompanyPkInfo(CompanyPkInfoDO companyPkInfoDO);

	public int updateCompanyPkInfoById(CompanyPkInfoDO companyPkInfoDO);
	
	public List<String> selectDistinctList(QueryCompanyPkInfo queryCompanyPkInfo);

	public int deleteById(long id);

	@Select("delete from company_pk_info where COMPANYID = #{id}")
	public void deleteByCompany(long id);

}

